package com.heima.wemedia.listener;

import com.heima.wemedia.task.WmNewsPublishTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @Author:篍
 * @Date: 2025/10/07 20:48
 * @Description:
 */
@Component
public class WmNewsPublishListener {

    @Autowired
    private WmNewsPublishTask wmNewsPublishTask;

    @PostConstruct
    public void handleMessage(){
        wmNewsPublishTask.newsAutoPublish();
    }
}
